<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <title>Document</title>
</head>


<body>
    <div id="app">
        <h1 v-if="isok">显示</h1>
        <h1 v-else>隐藏</h1>
    </div>
    <script>
        var a = new Vue({
            el: '#app',
            data: {
                isok: 'ture',
            }
        })
    </script>
</body>

</html>